package com.miao.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miao.mapper.XcPayRecordMapper;
import com.miao.po.XcPayRecord;
import com.miao.service.PayRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayRecordServiceImpl extends ServiceImpl<XcPayRecordMapper, XcPayRecord> implements PayRecordService {
    @Autowired
    private XcPayRecordMapper payRecordMapper;

    //根据payNo在支付表中查询
    @Override
    public XcPayRecord getPayRecordByPayno(String payNo) {
        XcPayRecord xcPayRecord = payRecordMapper.selectOne(new LambdaQueryWrapper<XcPayRecord>().eq(XcPayRecord::getPayNo, payNo));
        return xcPayRecord;
    }

}
